<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>上传商品信息</title>
	<style type="text/css">
/* ----表单控件CSS开始---- ↓ */
.WellForm *{margin:0;padding:0;}
.WellForm{font-size:12px;line-height:21px;}
.WellForm pre{float:left;margin-right:10px;}
/*background*/
.WellForm .TextL, .WellForm .TextR, .WellForm .WellText, .WellForm .SelectL, .WellForm .SelectR, .WellForm .WellSelect, .WellForm .WellTextArea .T, .WellForm .WellTextArea .T .TL, .WellForm .WellTextArea .T .TM, .WellForm .WellTextArea .B, .WellForm .WellTextArea .B .BL, .WellForm .WellTextArea .B .BM, .WellForm .WellRadio, .WellForm .WellCheckBox, .WellForm .ButtonL, .WellForm .ButtonR, .WellForm .WellButton{background:url(WellForm/WellForm.gif) no-repeat;}
/*WellText*/

/* ----表单控件CSS结束---- ↑ */

/* form */
body{width: 800px;margin:0 auto;font-size: 16px;font-family: 'Microsoft Yahei',微软雅黑}
form{float:left;padding:20px 100px;border:2px dashed #ccc;margin:20px auto;width:600px;}
form .item{float:left;clear:both;width:100%;margin-bottom:20px;}
.WellForm label{float:left;width:4em;height:21px;text-align:right;}
.ipt_01{width: 400px;height: 25px;line-height: 25px;padding-left: 20px}
</style>
	<script src="laydate/WdatePicker.js"></script>
</head>
<?php 
	session_start();
	include_once 'includes/init.php';
	$id=isset($_SESSION['id'])?$_SESSION['id']:'';
	$sql = "select id, phone, names from t_member where  id != ".$id." and type_id !=0 order by id desc";
	$query = $db_Obj->getAll($sql);
 ?>
<body>
	<div class="head">
		<h2 style="text-align: center;">上传商品信息</h2>
		<a href="index.php" style="margin-left:10px;">返回列表</a><br>
	</div>
	<div class="content">
	<form action="proaction.php" method="POST" enctype="multipart/form-data">
		  <div class="item">
		    <label  style="margin-left: 10px;">商品sid：</label>

			<?php foreach ($query as $key => $value) { ?>
			    <input type="checkbox"  name="sid[]" value="<?php echo $value['id']; ?>">
			    <?php echo $value['names']; ?> 
			<?php } ?>

		  </div>
		  <div class="item">
		    <label>商品型号：</label>
		    <input type="text" name="type" class="ipt_01"/>
		  </div>
		  <div class="item">
		    <label>商品规格：</label>
		    <input type="text" name="size" class="ipt_01"/>
		  </div>
		  <div class="item">
		    <label>商品单位：</label>
		    <input type="text" name="units" class="ipt_01"/>
		  </div>
		  <div class="item">
		    <label>商品数量：</label>
		    <input type="number" name="number" class="ipt_01"/>
		  </div>
		  <div class="item">
		    <label>商品价格：</label>
		    <input type="number" name="price" class="ipt_01"/>
		  </div>
		  <div class="item">
		    <label style="margin-left: 32px">币种：</label>
		    <input type="text" name="currency" class="ipt_01"/>
		  </div>
		  <div class="item">
		    <label>所属项目：</label>
		    <input type="text" name="project" class="ipt_01" placeholder="例:项目一" />
		  </div>
		  <div class="item">
		    <label>竞价状态：</label>
		    <input type="radio" name="status" value="1" id="aa" />
		    <label for="aa">竞价</label>
		    <input type="radio" name="status" value="0" checked="checked" id="bb" />
		    <label for="bb">非竞价</label>
		  </div>
		  <div class="item">
		    <label>密封状态：</label>
		    <input type="radio" name="mifeng" value="1" id="cc" />
		    <label for="cc">密封</label>
		    <input type="radio" name="mifeng" value="0" checked="checked" id="dd" />
		    <label for="dd">非密封</label>
		  </div>
		  <div class="item">
		    <label>截至日期：</label>
		    <input type="text"  name="lasttime" class=""  onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'});" />
		  </div>
		  <div class="item">
		    <label >产品说明：</label>
		    <input type="file" name="file_name" class="ipt_01"/>
		  </div>
		  <div class="item">
		    <label>商品备注：</label>
		    <textarea cols="50" rows="5"  name="note"></textarea>
		  </div>
		  <div class="item">
		  	<label>报价类型：</label>
		    <input type="text" name="price_type" class="ipt_01"/>
		  </div>
		  <div class="item">
		    <label></label>
		    <input style="margin-left: 100px"  type="submit" value="提交" /><input style="margin-left: 200px" type="reset" value="重置" />
		  </div>
	</form>

	</div>
</body>
</html>
